/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.pentofab.payrollmanagement.application;

import java.util.List;

import com.pentofab.payrollmanagement.dao.EmployeeDao;
import com.pentofab.payrollmanagement.dao.model.Department;
import com.pentofab.payrollmanagement.exception.DatabaseException;
import com.pentofab.payrollmanagement.ui.controller.MainController;

import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.stage.Stage;

/**
 * 
 * @author Santu
 */
public class PayRollApplication extends Application {

	@Override
	public void start(Stage stage) throws Exception {
		// Parent root =
		// FXMLLoader.load(getClass().getResource("/fxml/Attandance.fxml"));
		MainController mainController = PayrollApplicationFactory.getMainController();
		mainController.setStage(stage);
		mainController.showScreen(MainController.LOGIN_FORM, false,mainController);
		Scene scene = new Scene(mainController.getView(), 1200, 600);
		scene.getStylesheets().add("styles.css");
		stage.setScene(scene);
		stage.show();
	}

	public static void main(String[] args) {
		launch(args);
	}

}
